package com.dhcc.core.modules.system.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.dhcc.core.framework.base.entity.DataEntity;


/**
 * 个人文件表
 * 
 * @ClassName: PanFile
 * @Description: TODO
 * @author mk
 * @date 2018-08-30 20:44:24
 */
@TableName("sys_pan_file")
public class PanFile extends DataEntity<PanFile> {
	private static final long serialVersionUID = 1L;
	
	//用户ID
	private Long userId;		//附件ID
	private Long attachmentId;	
	//来源:0上传1：发送、2收信
	private Integer source;

    @TableField(exist = false)
    private String fileName;
	@TableField(exist = false)
	private PanAttachment attachment;
	/**
	 * 设置：用户ID
	 */
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	/**
	 * 获取：用户ID
	 */
	public Long getUserId() {
		return userId;
	}
	/**
	 * 设置：附件ID
	 */
	public void setAttachmentId(Long attachmentId) {
		this.attachmentId = attachmentId;
	}
	/**
	 * 获取：附件ID
	 */
	public Long getAttachmentId() {
		return attachmentId;
	}
	/**
	 * 设置：来源:0上传1：发送、2收信
	 */
	public void setSource(Integer source) {
		this.source = source;
	}
	/**
	 * 获取：来源:0上传1：发送、2收信
	 */
	public Integer getSource() {
		return source;
	}
    public String getFileName() {
        return fileName;
    }
    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

	public PanAttachment getAttachment() {
		return attachment;
	}

	public void setAttachment(PanAttachment attachment) {
		this.attachment = attachment;
	}
}
